package com.guodu.vo;

import java.text.DecimalFormat;


import com.guodu.entity.MaterialGhyc;


public class MaterialGhycVo {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	private MaterialGhyc materialGhyc;
	
	private String unitsName;
	
	private String funitsName;
	
	private Long funitsId;
	
	private Long unitsId;
	
	private String industry;
	
	private String userName;

	private String cgCount;

	private String cgMoney;

	private String xhCount;

	private String xhMoney;

	private String beginCount;
	
	private String beginMoney;
	
	private String endCount;
	
	private String endPrice;
	
	private String endMoney;
	
	
	
	public MaterialGhycVo(MaterialGhyc materialGhyc){
		DecimalFormat df = new DecimalFormat("##,###.##");
		if(materialGhyc.getCgCount()!=null)
		this.cgCount = df.format(materialGhyc.getCgCount());
		if(materialGhyc.getCgMoney()!=null)
		this.cgMoney = df.format(materialGhyc.getCgMoney());
		if(materialGhyc.getXhCount()!=null)
		this.xhCount = df.format(materialGhyc.getXhCount());
		if(materialGhyc.getXhMoney()!=null)
		this.xhMoney = df.format(materialGhyc.getXhMoney());
		if(materialGhyc.getBeginCount()!=null)
		this.beginCount = df.format(materialGhyc.getBeginCount());
		if(materialGhyc.getEndCount()!=null)
		this.endCount = df.format(materialGhyc.getEndCount());
		if(materialGhyc.getBeginMoney()!=null)
		this.beginMoney = df.format(materialGhyc.getBeginMoney());
		if(materialGhyc.getEndMoney()!=null)
		this.endMoney = df.format(materialGhyc.getEndMoney());
		if(materialGhyc.getEndPrice()!=null)
		this.endPrice = df.format(materialGhyc.getEndPrice());
		this.materialGhyc = materialGhyc;
	}
	
	public String getUnitsName() {
		return unitsName;
	}

	public void setUnitsName(String unitsName) {
		this.unitsName = unitsName;
	}

	public String getFunitsName() {
		return funitsName;
	}

	public void setFunitsName(String funitsName) {
		this.funitsName = funitsName;
	}

	public MaterialGhyc getMaterialGhyc() {
		return materialGhyc;
	}

	public void setMaterialGhyc(MaterialGhyc materialGhyc) {
		this.materialGhyc = materialGhyc;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}
	
	

	public Long getFunitsId() {
		return funitsId;
	}

	public void setFunitsId(Long funitsId) {
		this.funitsId = funitsId;
	}

	public Long getUnitsId() {
		return unitsId;
	}

	public void setUnitsId(Long unitsId) {
		this.unitsId = unitsId;
	}

	public String getIndustry() {
		return industry;
	}

	public void setIndustry(String industry) {
		this.industry = industry;
	}

	public String getCgCount() {
		return cgCount;
	}

	public void setCgCount(String cgCount) {
		this.cgCount = cgCount;
	}

	public String getBeginCount() {
		return beginCount;
	}

	public void setBeginCount(String beginCount) {
		this.beginCount = beginCount;
	}

	public String getBeginMoney() {
		return beginMoney;
	}

	public void setBeginMoney(String beginMoney) {
		this.beginMoney = beginMoney;
	}

	public String getCgMoney() {
		return cgMoney;
	}

	public void setCgMoney(String cgMoney) {
		this.cgMoney = cgMoney;
	}

	public String getXhCount() {
		return xhCount;
	}

	public void setXhCount(String xhCount) {
		this.xhCount = xhCount;
	}

	public String getXhMoney() {
		return xhMoney;
	}

	public void setXhMoney(String xhMoney) {
		this.xhMoney = xhMoney;
	}

	public String getEndCount() {
		return endCount;
	}

	public void setEndCount(String endCount) {
		this.endCount = endCount;
	}

	public String getEndPrice() {
		return endPrice;
	}

	public void setEndPrice(String endPrice) {
		this.endPrice = endPrice;
	}

	public String getEndMoney() {
		return endMoney;
	}

	public void setEndMoney(String endMoney) {
		this.endMoney = endMoney;
	}
	
	
	
	
	
}
